(function (w, d, n, a, j) {
    w[n] =
        w[n] ||
        function () {
            (w[n].a = w[n].a || []).push(arguments);
        };
    j = d.createElement("script");
    j.async = true;
    j.src = "https://qiyukf.com/script/a5751246b15730d85b8fd3938baf47a9.js?hidden=1";
    d.body.appendChild(j);
})(window, document, "ysf");

var isSdkReady = false;
ysf("onready", function () {
    isSdkReady = true;
});
ysf("config", { unconfirm: 1 });
window.url = function () {
    if (isSdkReady) {
        location.href = ysf("url");
    } else {
        alert("sdk尚未加载成功，请稍后再试");
    }
};